
<xsl:stylesheet version="2.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:java="java" 
	>
	<xsl:output omit-xml-declaration="yes" method="xml"/>
	<xsl:template match="/Pannello">
	<xsl:variable name="rb"
              select="java:util.ResourceBundle.getBundle('bundle')"/>
        
	<xsl:variable name="target" ><xsl:value-of select="@target"/></xsl:variable>
	<xsl:variable name="deleteTooltip"><xsl:value-of select="java:getString($rb,'TOOLTIP_DELETE')"/></xsl:variable>
	
		<div id="panelFormContainer">
			<table id="formPanelTable">
				<caption><xsl:value-of select="java:getString($rb,'PANEL_PANELNAME')"/></caption>
				<tr>
					<th scope="col" class="colLabel"></th>
					<th scope="col" class="colField"></th>
					<th scope="col" class="colLabel"></th>
					<th scope="col" class="colField"></th>
					<th scope="col" class="colLabel"></th>
					<th scope="col" class="colField"></th>
				</tr>
				<tr>
				
					<td> 
						<label for='scadenzaContratto' class='panel_label'>
							<xsl:value-of select="java:getString($rb,'PANEL_SCADENZA_CONTRATTO')"/>:
							
						</label>
					</td>
					<td>
						<input type='text' name='scadenzaContratto' id='scadenzaContratto' class='panel_input' size='20' 
								value='{ScadenzaContratto}'
						/>
					</td>	
					<td>
						<label for='dataColloquio' class='panel_label'> 
							<xsl:value-of select="java:getString($rb,'PANEL_DATA_COLLOQUIO')"/>:
						</label>
					</td>	
					<td>
						<input type='text' name='dataColloquio' id='dataColloquio' class='panel_input' size='20'
								value='{DataColloquio}'
						/>
					</td>
					<td>
						<label for='giorniPreavviso' class='panel_label'>
							<xsl:value-of select="java:getString($rb,'PANEL_GIORNI_PREAVVISO')"/>:
						</label>
					</td>
					<td>
						<input type='text' name='giorniPreavviso' id='giorniPreavviso' class='panel_input' size='20'
								value='{Preavviso}'
						/>
					</td>
				</tr>
				<tr>
					<td>
						<label for='schedaCandidato' class='panel_label'>
								<xsl:value-of select="java:getString($rb,'PANEL_SCHEDA_CANDIDATO')"/>:
								
						</label>
						
					</td>
					<td>
						<xsl:if test="SchedaCandidato!=''">
							<textarea rows="20" cols="50" 
								style="display: inline; height: 100px; width: 143px;resize: none;" 
								name='schedaCandidato' id='schedaCandidato' class='panel_input' size='20'
								value='{SchedaCandidato}'
							><xsl:value-of select="SchedaCandidato"/></textarea>
						</xsl:if>	
						<xsl:if test="SchedaCandidato=''">
							<textarea rows="20" cols="50" 
								style="display: inline; height: 100px; width: 143px;resize: none;" 
								name='schedaCandidato' id='schedaCandidato' class='panel_input' size='20'
								
							><xsl:text> </xsl:text></textarea>
						</xsl:if>	
						
					</td>
					<td>
						<label for='schedaCliente' class='panel_label'>
							<xsl:value-of select="java:getString($rb,'PANEL_SCHEDA_CLIENTE')"/>:
							
						</label>
					</td>
					<td>
						<xsl:if test="SchedaCliente!=''">
							<textarea rows="20" cols="50" 
								style="display: inline; height: 100px; width: 143px;resize: none;" 
								name='schedaCliente' id='schedaCliente' class='panel_input' size='20'
								value='{SchedaCliente}'
							>
								<xsl:value-of select="SchedaCliente"/>
							</textarea>
						</xsl:if>	
						<xsl:if test="SchedaCliente=''">
							<textarea rows="20" cols="50" 
								style="display: inline; height: 100px; width: 143px;resize: none;" 
								name='schedaCliente' id='schedaCliente' class='panel_input' size='20'
								
							><xsl:text> </xsl:text></textarea>
						</xsl:if>	
						
					</td>
					<td>
						<label for='clienteFinale' class='panel_label'>
							<xsl:value-of select="java:getString($rb,'PANEL_CLIENTE_FINALE')"/>:
						</label>
					</td>
					<td>
						<xsl:if test="ClienteFinale!=''">
							<textarea rows="20" cols="50" 
								style="display: inline; height: 100px; width: 143px;resize: none;" 
								name='clienteFinale' id='clienteFinale' class='panel_input' size='20'
								value='{ClienteFinale}'
							>
								<xsl:value-of select="ClienteFinale"/>
							</textarea>
						</xsl:if>	
						<xsl:if test="ClienteFinale=''">
							<textarea rows="20" cols="50" 
								style="display: inline; height: 100px; width: 143px;resize: none;" 
								name='clienteFinale' id='clienteFinale' class='panel_input' size='20'
								
							><xsl:text> </xsl:text></textarea>
						</xsl:if>	
					</td>
				</tr>	
				<tr>
					<td>
						<label for='costo' class='panel_label'>
							<xsl:value-of select="java:getString($rb,'PANEL_COSTO')"/>:
						</label>
					</td>
					<td>
						<input 	type='text' name='costo' id='costo' class='panel_input' size='20'
								value='{Costo}'
						/>
					</td>
					
					<td>
					
						<xsl:if test="ID!='0'">
							<a href="javascript:getTarget('gestioneCandidato.save','{$target}','{ID}','GestioneCandidato')" id="savePanelButton" >Salva</a>
						</xsl:if>	
					</td>
					
				</tr>		
			</table>	
		</div>
	</xsl:template>
</xsl:stylesheet>